<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>promise</title>
</head>
<body>
<script src="../手写promise.js"></script>
<script>

  let p1 = new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve("ghh")
    })
  })

  console.log(p1);

</script>
</body>
</html>